﻿using Inovout.Memberships;
using Inovout.Security;
using Inovout.Web.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Threading;
using System.Web;
using System.Web.Helpers;
using System.Web.Mvc;
using System.Web.Routing;

namespace Inovout.Kuajing.Exports.Console.Web.Controllers
{
    public class KJBaseController<T> : RepositoryController<T> where T : class
    {
        public KJBaseController()
        {

        }

        protected override IMembership Membership
        {
            get { return null; }
        }
        protected override ISystemUser SystemUser
        {
            get { return null; }
        }

        protected override void Initialize()
        {
            if (Thread.CurrentPrincipal.Identity.IsAuthenticated)
            {
                ViewBag.MembershipName = Thread.CurrentPrincipal.Identity.Name;
            }
        }
	}
}